

import request from '@/utils/request'

// 查询
export function withdrawal(query) {
    return request({
        url: '/finance/apply/list',
        method: 'get',
        params: query
    })
}


//审核
export function applyWithdrawal(data) {
    return request({
        url: '/finance/apply/audit',
        method: 'post',
        data
    })
}

//重新提交
export function reApply(data) {
    return request({
        url: '/finance/apply',
        method: 'put',
        data
    })
}

//新增
export function addWithdrawal(data) {
    return request({
        url: '/finance/apply/add',
        method: 'post',
        data
    })
}

// 提现管理查询
export function withdrawalManage(query) {
    return request({
        url: '/finance/apply/withdrawal/details',
        method: 'get',
        params: query
    })
}

//获取渠道信息
export function distributorbase(params) {
    return request({
        url: '/commodity/distributorbase/list',
        method: 'get',
        params
    })
}


//获取渠道信息
export function details(params) {
    return request({
        url: '/finance/apply/withdrawal/details',
        method: 'get',
        params
    })
}
